package cn.tedu.zx.ums.mapper;

import cn.tedu.zx.pojo.users.entity.User;
import cn.tedu.zx.pojo.users.param.UserLoginParam;
import cn.tedu.zx.pojo.users.param.UserRemPasswordParam;
import cn.tedu.zx.pojo.users.vo.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface UserMapper extends BaseMapper<User> {
    UserStandardVO getStandardById(Long id);

    List<UserListItemVO> list();

    UserLoginInfoVO selectByLoginData(String username,String password);

    //根据用户名查询加密密码
    String getOldPassword(Long id);

    //根据邮箱修改密码
    UpdatePasswordByEmailVO getUpdatePasswordByEmail(String email);

    UserRemPasswordVO getUserRemPassword(String phone);

    void updatePassword(String encode, String username, String phone);

    UserData getUserData(String username);
}


